<?php

namespace brand\components;

use brand\logic\Database;

class Number extends Component
{

    public function _init()
    {
        $this->component = 'number';
    }

    /**
     * 创建Curd表单
     * @param $field
     * @param $props
     */
    public function DbToCurd($field,$props = [])
    {
        return \brand\Brand::Builder()->form_props($props)->table(false)->form_method('number')->table_action_type('number');
    }

}